package xin.mydreams.mybill.global.result.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 
 * @Type MyException.java 
 * @author 谷泽昊
 * @date 2018年10月29日 下午3:05:32
 * @version 
 */
public class MyException extends RuntimeException{

	private static final long serialVersionUID = 3918707200183569313L;

	@Setter
	@Getter
	private int code;

	public MyException(String message) {
		super(message);
	}

	public MyException(String message, int code) {
		super(message);
		this.code = code;
	}
	
	public MyException(String message, int code,Throwable e) {
		super(message,e);
		this.code = code;
	}
	
	public MyException(int code, String message, Throwable e){
		super(message, e);
		this.code = code;
	}
	
	public MyException(int code, String message){
		super(message);
		this.code = code;
	}
	
	public MyException(Throwable e){
		super(e);
	}
	
	public MyException(String message, Throwable e){
		super(message, e);
	}

}


/**
 *
 * Revision history
 * -------------------------------------------------------------------------
 * 
 * Date Author Note
 * -------------------------------------------------------------------------
 * 2018年10月29日 谷泽昊 creat
 */